<%@page import="java.util.List"%>
<%@page import="sdfi.lee.DAO.PersonDAO"%>
<%@page import="sdfi.lee.Entity.Person"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="../css/index.css" rel="stylesheet" type="text/css" />
<link href="../css/level.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%
	String pid=request.getParameter("pid");
	String pg=request.getParameter("pg");
	String ptype=request.getParameter("ptype");
	PersonDAO pdao=new PersonDAO();
	Person person=pdao.getPersonById(Integer.valueOf(pid));
	List<Person> list=pdao.getAllPerson(Integer.valueOf(pg),5,Integer.valueOf(ptype));
	request.setAttribute("person",person);
	request.setAttribute("list",list);
%>
<div  class="divhead">当前位置:&nbsp;&nbsp;<a href="<c:url value='/index.jsp' />">首页</a>
&nbsp;&nbsp;&gt;<a href="<c:url value='/person/personlist.jsp?ptype=${param.ptype}&pg=1' />">
<c:choose>
		<c:when test="${param.ptype==1}">领军人物</c:when>
		<c:otherwise>骨干人物</c:otherwise>
</c:choose>
	
</a>
</div>
<div id="divshowcontain">
	<div id="divleft">
    	<div class="div_content_title">${requestScope.person.personname }</div>
        <div class="div_content_fenge2"></div>
        <div class="div_detail">
        	${requestScope.person.persondescribe}
        </div>
    </div>
    <div id="divmid"></div>
    <div id="divright">
    	<c:forEach items="${requestScope.list}" var="person">
    		<div class="newsitem">
    			<div class="newstitle">
    				<a href="<c:url value='/person/persondetail.jsp?ptype=${param.ptype}&pid=${person.id}&pg=${param.pg+1 }' />">${person.personname}</a>
    			</div>
    			<div class="newsdate">&nbsp;</div>
    		</div>
    	</c:forEach>
    </div>
    <div style="clear:left"></div>
</div>
</body>
</html>